package com.woniuxy.mail.rabbit_demo.service;

import org.thymeleaf.context.Context;

import javax.mail.MessagingException;

/**
 * @Description:
 * @Author:l
 * @Date:2022.02.18
 */
public interface EmailService {
    /**
     * 发送邮件
     * @param Title 邮件标题
     * @param context 模板共享数据
     * @param sender 发件人邮箱
     * @param accepter 收件人邮箱
     * @throws MessagingException
     */
    void sendEmail(String Title, Context context, String sender, String accepter,String emailTemplate) throws MessagingException;
}
